<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天天互保-绑定手机号</title>
<meta name="keywords" content="天天互保"> 
<meta name="description" content="天天互保"> 
<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport">
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/index.css">
<link rel="stylesheet" href="__CSS__/admin.css">
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/jquery.validate.js"></script>
<script src="__JS__/member.validate.js"></script>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script language="javascript">
	function get_mobile_code(){
        $.post('sms.php', {mobile:jQuery.trim($('#mobile').val()),send_code:<?php echo $_SESSION['send_code'];?>}, function(msg) {
            alert(jQuery.trim(unescape(msg)));
			if(msg=='提交成功'){
				RemainTime();
			}
        });
	};
	var iTime = 59;
	var Account;
	function RemainTime(){
		document.getElementById('zphone').disabled = true;
		var iSecond,sSecond="",sTime="";
		if (iTime >= 0){
			iSecond = parseInt(iTime%60);
			iMinute = parseInt(iTime/60)
			if (iSecond >= 0){
				if(iMinute>0){
					sSecond = iMinute + "分" + iSecond + "秒";
				}else{
					sSecond = iSecond + "秒";
				}
			}
			sTime=sSecond;
			if(iTime==0){
				clearTimeout(Account);
				sTime='获取手机验证码';
				iTime = 59;
				document.getElementById('zphone').disabled = false;
			}else{
				Account = setTimeout("RemainTime()",1000);
				iTime=iTime-1;
			}
		}else{
			sTime='没有倒计时';
		}
		document.getElementById('zphone').value = sTime;
	}	
</script>
</head>
<body>
<div class="defimgs"><img src="./images/defaultimg.png"/><p>微信名</p></div>
<div class="regs textleft font14">请绑定您的手机号</div>
<form action="__URL__/sms/H/k" method="post" name="formUser">
	<table width="100%"  border="0" align="left" cellpadding="5" cellspacing="3">
		<tr>
			<td align="right">手机<td>
		<input id="mobile" name="mobile" type="text" size="25" class="inputBg" /><span style="color:#FF0000"> *</span> 
        <input id="zphone" type="button" value=" 获取手机验证码 " onClick="get_mobile_code();"></td>
        </tr>
		<tr>
			<td align="right">验证码</td>
			<td><input type="text" size="8" name="mobile_code" class="inputBg" /></td>
		</tr>
		<tr>
			<td align="right"></td>
			<td><input type="submit" value=" 注册 " class="button"></td>
		</tr>
	</table>
<!-- <ul class="uslist font14">
	<li class="updates">
		<p>手机号</p>
		<div class="inputs">
			<input type="number" id="phone" name="mobile" placeholder="您的手机号" value="" class="inputtype font14" required/>

			<label for="phone" class="errorinfo"> </label>
		</div>
	</li>
	<li class="updates nobor_bottom">
		<p>验证码</p>
		<div class="inputs">
			<input type="text" name="mobile_code" placeholder="您的验证码" value="" class="inputtype font14 otherinput" />
			<button class="font12 otherbtn" onClick="get_mobile_code();">获取验证码</button>
		</div>
	</li>
</ul>
<div style="height:15px;"></div>
<input type="submit" value="绑定" class="submits font14" onclick="window.location.href='member.html'"/> -->
</form>
<!-- onclick="window.location.href='new_pwd.html'"-->
</body>
</html>